home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09962.iso / themestz / xf-them2.zip / Reinstall X-Files logos.bat < prev    next >
DOS Batch File  |  1996-08-02  |  3KB  |  94 lines

  1. @echo off
  2. cls
  3.  
  4. REM Logo re-installation procedure for "X-Files - The Theme v2.0"
  5. REM Version 2.0, August 2, 1996
  6. REM
  7. REM D.Sanders, email: danny@stack.urc.tue.nl
  8. REM
  9. REM This file must be run from Windows 95!
  10.  
  11. REM ====================================================================================
  12.  
  13.     echo ===============================================================================
  14.     echo                             X-Files - The Theme v2.0
  15.     echo                         Logo Re-installation Program v2.0
  16.     echo                                 by Danny Sanders
  17.     echo                                  August 2, 1996
  18.     echo ===============================================================================
  19.     goto windows
  20.  
  21. REM ====================================================================================
  22.  
  23. REM Check for Windows environment
  24. :windows
  25.     if "%windir%"=="" goto no_win
  26.     goto source
  27.  
  28. REM Check for source files.
  29. :source
  30.     if not exist c:\logo.xf2 goto no_logo
  31.     if not exist %windir%\logos.xf2 goto no_logos
  32.     if not exist %windir%\logow.xf2 goto no_logow
  33.     goto reinstall
  34.  
  35. REM ====================================================================================
  36.  
  37. REM Re-install logos
  38. :reinstall
  39.     echo  
  40.     echo Re-installing logos, please wait...
  41.     if exist c:\logo.sys if not exist c:\logo.w95 rename c:\logo.sys logo.w95
  42.     if exist c:\logo.sys del c:\logo.sys
  43.     rename c:\logo.xf2 logo.sys
  44.     if exist %windir%\logow.sys if not exist %windir%\logow.w95 rename %windir%\logow.sys logow.w95
  45.     if exist %windir%\logow.sys del %windir%\logow.sys
  46.     rename %windir%\logow.xf2 logow.sys
  47.     if exist %windir%\logos.sys if not exist %windir%\logos.w95 rename %windir%\logos.sys logos.w95
  48.     if exist %windir%\logos.sys del %windir%\logos.sys
  49.     rename %windir%\logos.xf2 logos.sys
  50.     goto done
  51.  
  52. REM ====================================================================================
  53.  
  54. REM Display done message
  55. :done
  56.     echo  
  57.     echo Logos succesfully re-installed.
  58.     goto end
  59.  
  60. REM ====================================================================================
  61.  
  62. REM Print errormessage
  63. :no_win
  64.   echo  
  65.   echo The re-installation script hasn't been able to detect Microsoft Windows 95.
  66.   echo Please start Windows 95 and try again.
  67.   goto end
  68.  
  69. REM Print errormessage
  70. :no_logo
  71.   echo  
  72.   echo The re-installation script can't find the theme's startup logo.
  73.   echo Without this logo it is not possible to re-install the theme's logos.
  74.   goto end
  75.  
  76. :no_logos
  77.   echo  
  78.   echo The re-installation script can't find the theme's shutdown logo.
  79.   echo Without this logo it is not possible to re-install the theme's logos.
  80.   goto end
  81.  
  82. REM Print errormessage
  83. :no_logow
  84.   echo  
  85.   echo The installation script can't find the theme's turn-off logo.
  86.   echo Without this logo it is not possible to re-install the theme's logos.
  87.   goto end
  88.  
  89. REM ====================================================================================
  90.  
  91. REM End.
  92. :end
  93.   echo  
  94.